#ifndef CARDVIEWOBJECT_H
#define CARDVIEWOBJECT_H

#include <QGraphicsItem>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QPainter>
#include <QStyleOption>

#include "abstractcard.h"
#include "IViewObjectData.h"

class CardViewObject : public QGraphicsItem, public ICardViewObjectData
{
public:
    CardViewObject(AbstractCard * card = 0);
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
               QWidget *widget);
    QRectF boundingRect() const;
    QPainterPath shape() const;

    virtual CardViewObjectData *getViewObjectInformation();

    QRect cardRect;

private:
    AbstractCard * m_Card;


};

#endif // CARDVIEWOBJECT_H
